﻿/*========================================================================================
     TASK 13:                                         {Primitive-Data-Types-and-Variables}
     Create a program that assigns null values to an integer and to double variables.
     Try to print them on the console, try to add some values or the null literal to them
     and see the result.
 ========================================================================================*/

using System;

class NullAssignment
{
    static void Main()
    {
        int? i = null;
        double? d = null;
        Console.WriteLine("This is the integer with Null value =>"+i);
        Console.WriteLine("This is the double with Null value =>"+d);
        Console.WriteLine("This is the \"i+15\" with Null value =>"+(i+15));
        Console.WriteLine("This is GetValueOrDefault with \"i=Null\" =>" +i.GetValueOrDefault());
        Console.WriteLine();
        i = 5;
        d = 5.5;
        Console.WriteLine("This is the integer with value =>" + " " + i);
        Console.WriteLine("This is the double with  value =>" + " " + d);
        Console.WriteLine("This is GetValueOrDefault with \"i=5\" =>" + i.GetValueOrDefault());
}
}

